package com.ruicar.afs.cloud.afscase.infomanagement.service;

import com.ruicar.afs.cloud.bizcommon.business.dto.CalculatorDTO;
import com.ruicar.afs.cloud.bizcommon.business.dto.CalculatorListDTO;
import com.ruicar.afs.cloud.bizcommon.business.entity.FinCostDetails;
import com.ruicar.afs.cloud.common.core.util.IResponse;

import java.util.List;

/**
 * @description: 金融产品
 * @author: sijun.yu
 * @date: 2020/8/4 19:49
 */
public interface CaseProductService {

    /**
     * 查询产品详情
     * @param condition
     * @return
     */
    public IResponse queryProductDetails(CalculatorDTO condition);

    /**
     * 获取产品利率
     * @param condition
     * @return
     */
    public IResponse getProductRate(CalculatorDTO condition);

    /**
     * 调用计算器，生成2个还款计划表
     * @param list
     * @return
     */
    public IResponse financeCalculation(List<CalculatorDTO> list);

    /**
     * 更新融资列表信息
     *
     * @param applyNo
     * @param inList
     */
    public List<FinCostDetails> updateCostList(String applyNo, List<CalculatorDTO> inList);

    /**
     * 金融产品-调用计算器
     * @param condition
     * @return
     */
    public IResponse financeProductCalculation(CalculatorListDTO condition);


}
